package com.seari.tunnel.entity;



/**
 * 	
 * @author 	JFM
 */
public class UserRole {
	
	/**
	 * 值越小，优先级越高
	 */
	private Integer priority = 99;
	
	private int roleId;
	
	private int userId;
	
	private Role role;
	
	private User user;
	

	/**  
	 * 返回 priority 的值   
	 * @return priority  
	 */
	public Integer getPriority() {
		return priority;
	}

	public UserRole() {
		super();
	}

	public UserRole(int roleId, int userId) {
		super();
		this.roleId = roleId;
		this.userId = userId;
	}

	/**  
	 * 设置 priority 的值  
	 * @param priority
	 */
	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
}
